import axios from 'axios';
axios.defaults.baseURL = 'http://localhost:3008';

//获取订单列表
export const getOrdersListApi = (params = { pageSize: 6, pageNumber: 1, conditions: { type: '' } }) => axios.post('/orders/getAllOrders', params);
//删除一个订单
export const deleteOneOrderApi = (id) => axios.delete('/orders/deleteOneOrder?id=' + id);
//获得一个订单的详情
export const getOneOrder = (id) => axios.get("/orders/getOneOrder?id=" + id)